home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 August / MW 8 2003 CD1.iso / Inside Macworld / Product News / gimp-1.2.4.sit / gimp-1.2.4 / plug-ins / perl / Gimp / Config.pm.in < prev    next >
Encoding:
Text File  |  1999-05-31  |  937 b   |  46 lines

  1. package Gimp::Config;
  2.  
  3. =cut
  4.  
  5. =head1 NAME
  6.  
  7.   Gimp::Config - config options found during configure time.
  8.  
  9. =head1 DESCRIPTION
  10.  
  11. The Gimp::Config module creates a tied hash %Gimp::Config which contains
  12. all the definitions the configure script and perl deduced from the system
  13. configuration at configure time. You can access these values just like you
  14. access any other values, i.e.  C<$Gimp::Config{KEY}>. Some important keys are:
  15.  
  16.   IN_GIMP    => true when gimp-perl was part of the Gimp distribution.
  17.   GIMP        => the path of the gimp executable
  18.   prefix    => the installation prefix
  19.   libdir    => the gimp systemwide libdir
  20.   bindir    => paths where gimp binaries are installed
  21.   gimpplugindir    => the gimp plug-in directory (without the /plug-ins-suffix)
  22.  
  23. =head1 SEE ALSO
  24.  
  25. L<Gimp>.
  26.  
  27. =cut
  28.  
  29. sub TIEHASH {
  30.    my $pkg = shift;
  31.    my $self;
  32.  
  33.    bless \$self, $pkg;
  34. }
  35.  
  36. sub FETCH {
  37.    $cfg{$_[1]};
  38. }
  39.  
  40. tie %Gimp::Config, 'Gimp::Config';
  41.  
  42. %cfg = (
  43. #CFG#);
  44.  
  45. 1;
  46.